;
(function() {
	module.exports = function(host) {
		var appConfigPub = AppConfigBase(host);
		var server_url = appConfigPub.server_url;
		appConfigPub.short_url = "s/";
		appConfigPub.getVisitorInfo = server_url + "visitorInfo";
		appConfigPub.recordVisitorInfo = server_url + "visitorInfo";
		appConfigPub.socketNotify = server_url + "sock_notify";
		appConfigPub.socketNotify_key = server_url + "notify/ask_con_key";
		//其它API
		var other = appConfigPub.other || (appConfigPub.other = {});
		other.upload_image = server_url + "file/upload/image";
		other.upload_base64_image = server_url + "file/upload/image/base64";
		other.upload_mul_base64_image = server_url + "file/upload/imgs/base64";
		other.get_upload_callback = server_url + "file/getcallback/";
		other.make_short_url = server_url + "s";
		other.make_wx_short_url = server_url + "s/wx";
		other.get_city = server_url + "city/by_parent_id/";
		other.get_city_by_name = server_url + "city/by_name/";
		other.get_qrcode = server_url + "qrcode";
		//管理员基础API
		var admin = appConfigPub.admin || (appConfigPub.admin = {});
		admin.loginer = server_url + "admin";
		admin.sign_in_url = server_url + "admin/login";
		admin.sign_in_img_code_url = server_url + "admin/loginCode";
		//官方网站开放的API
		var open = appConfigPub.open || (appConfigPub.open = {});
		open.case_list = server_url + "case/list";
		open.case_by_id = server_url + "case/byId";
		open.news_list = server_url + "news/list";
		open.news_by_id = server_url + "news/byId";
		open.message_list = server_url + "message/list";
		open.message_by_id = server_url + "message/byId";
		open.add_message = server_url + "message/add_message";
		open.www_visitor_num = server_url + "visitorInfo/www/num";
		open.get_bus_recommend_config = server_url + "bus/recommend_config/buyId/";

		open.register_code = server_url + "bus/registerCode";
		open.register_with_domain_build = server_url + "bus/register_with_domain_build";
		//密码找回
		open.find_paw_email_user = server_url + "find_paw/email/user";
		open.find_paw_email_bus = server_url + "find_paw/email/bus";
		open.find_paw_phone_user = server_url + "find_paw/mobile_phone/user";
		open.find_paw_phone_bus = server_url + "find_paw/mobile_phone/bus";
		open.reset_paw_by_find_paw_id = server_url + "find_paw/by_find_paw_id/";
		//商家信息
		open.bus = server_url + "bus/byId/";
		open.bus_assshop = server_url + "bus/assshop/list/";
		//人气API
		appConfigPub.hot_length = server_url + "hot/byId/";
		appConfigPub.hot_add = server_url + "hot/add_hot/";
		//优惠券API
		appConfigPub.bus_ticket_list = server_url + "ticket_factory/list";
		appConfigPub.bus_ticket_list_by_id = server_url + "ticket_factory/by_id/";
		//模板信息
		appConfigPub.dotnar_template_list = server_url + "dotnar_template/list";
		//目录分类
		appConfigPub.bus_classify_tree = server_url + "classify/tree/";
		appConfigPub.bus_classify_all_child_goods_by_id = server_url + "classify/all_child_goods_by_id/";
		appConfigPub.bus_classify_by_id = server_url + "classify/by_id/";
		//抽奖信息
		appConfigPub.bus_lottery_by_id = server_url + "lottery/by_id/";
		appConfigPub.bus_lottery_list = server_url + "lottery/list";
		return appConfigPub;
	}
	var AppConfigBase = require("./config.base.template");
}());